<?php
/**
 * misc_config.php          杂项配置
 * 
 * @author                  mashanling(msl-138@163.com)
 * @date                    2012-03-22 08:44:25
 * @last modify             2012-03-22 08:44:25 by mashanling
 */

!defined('ROOT') && exit('Access Denied');

define('IS_LOCAL'              , true);                       //是否本地环境
define('APP_DEBUG'             , IS_LOCAL && !isset($_GET['nodebug']) ? true : false);    //调试
define('TIME_START'            , $_SERVER['REQUEST_TIME']);   //开始执行时间戳
define('TIME_START_MICRO'      , microtime(true));            //开始执行时间
define('TIME_DIFF'             , 28800);                      //与格式尼治时间戳相差秒数
define('TIMEZONE_DEFAULT'      , 'asia/shanghai');            //默认时区
define('TIMEZONE_USA'          , 'America/Whitehorse');       //美国白宫时区
define('DATE_FORMAT'           , 'Y-m-d H:i:s');              //时间格式
define('EOL_CR'                , "\r");                       //回车
define('EOL_LF'                , "\n");                       //换行
define('EOL_CRLF'              , EOL_CR . EOL_LF);            //回车换行
define('CRLF'                  , EOL_CRLF);                   //回车换行
define('AGENT_FIREFOX_10'      , 'User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/10.0.1');
define('AGENT_FIREFOX_9'       , 'User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1');
define('AGENT_FIREFOX'         , AGENT_FIREFOX_10);
define('AGENT_MSIE_8'          , 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; CIBA)');
define('AGENT_MSIE_6'          , 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; CIBA)');
define('AGENT_CHROME'          , 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7');
define('AGENT_SAFARI'          , 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7');
define('AGENT_OPERA'           , 'Opera/9.80 (Windows NT 5.1; U; zh-cn) Presto/2.10.229 Version/11.60');
?>